<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>input 文本输入框</title>
  <link rel="stylesheet" href="../res/layui/css/layui.css">
</head>
<body>

<!-- 你的HTML代码 -->
<fieldset class="layui-elem-field layui-field-title">
  <legend>input 文本输入框</legend>
  <div class="layui-field-box">
    <form class="easyui-form" action="#">
      <div class="layui-form-item">
        <label class="layui-form-label">输入框</label>
    	<div class="layui-input-block">
    	  <input type="text" name="title" lay-verify="required" playholder="请输入标题" autocomplete="off" class="layui-input">
    	</div>
      </div>
    </form>
  </div>
</fieldset>

<script src="../res/layui/layui.js"></script>
<script>
 
//一般直接写在一个js文件中
layui.use(['layer', 'form'], function(){
  var layer = layui.layer
  ,form = layui.form();
});
</script> 
  
</body>
</html>